package com.baidu.ai.aip;

import com.google.gson.Gson;

public class TestJson {

    public static void main(String[] args) {
        String data = "{'error_code':0,'error_msg':'SUCCESS','log_id':2010579001790,'timestamp':1617268781,'cached':0,'result':{'merge_image':'this sub'}}";
        System.out.println("初始json" + data);
        Gson gson = new Gson();
        ResultJson result = gson.fromJson(data, ResultJson.class);
        System.out.println(result.getResult().getMerge_image());
    }
}
